﻿<!-- Ree7 Tile Toolkit for Windows Phone
     Copyright (C) 2011-2014 Pierre BELIN <pierre@ree7.fr>, and project contributors.

     Distributed under the Microsoft Public License (Ms-PL).
     See accompanying file License.txt -->

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:tiletoolkit="clr-namespace:Ree7.TileToolkit">

    <Style TargetType="tiletoolkit:CustomTile">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="tiletoolkit:CustomTile">
                    <Grid Cursor="{TemplateBinding Cursor}"
                          Height="{TemplateBinding Height}"
                          Width="{TemplateBinding Width}"
                          Margin="{TemplateBinding Padding}"
                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                        <Rectangle x:Name="SolidBackground" Fill="{TemplateBinding Background}"/>
                        <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>